﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using Ninject;
using Ninject.Activation;
using Ninject.Modules;
using ERP.Manager.BusinessServices;
using ERP.Manager.SQLServerProvider;


namespace ERP.Manager.Controllers
{
    public class ControllerDependencyInjection
    {
        private readonly IKernel kernel;

        public ControllerDependencyInjection()
        {
            kernel = new StandardKernel(new ERPManagerRepositoryBindingModule(),
                                        new ERPManagerServiceBindingModule());
        }

        public IKernel Kernel
        {
            get { return kernel; }
        }
    }
}
